class FirstAidKitSuper extends FirstAidKit;

var	KFRandomItemSpawn	MySpawner;

auto state Pickup
{
    function Touch( actor Other )
    {
        local Pawn P;
        local PlayerController PC;

        P = Pawn(Other);
        if( P!=none )
        {
          PC = PlayerController(P.Controller);

			if ( SRHumanPawn(P) == none )
				return;

          if ( ValidTouch(Other) && (P.Health < SRHumanPawn(P).RepHealthMax) )
          {
			P.Health = SRHumanPawn(P).RepHealthMax;
			if ( MySpawner != none && KFGameType(Level.Game) != none )
			{
				KFGameType(Level.Game).WeaponPickedUp(MySpawner);
			}
            AnnouncePickup(P);
            SetRespawn();
          }
          else
            if (P.Health >= SRHumanPawn(P).RepHealthMax && PlayerController(P.Controller)!=none )
              PlayerController(P.Controller).ClientMessage("You are already at full health.", 'KFCriticalEvent');
       }
    }
}

defaultproperties
{
     EquipmentCategoryID=4
     ItemCost=150
     HealingAmount=100
     bSuperHeal=False
     bOnlyReplicateHidden=False
     RespawnTime=0.000000
     PickupMessage="You used a First Aid Kit"
     PickupSound=Sound'KF_InventorySnd.Medkit_Pickup'
     StaticMesh=StaticMesh'KillingFloorStatics.FirstAidKit'
     Physics=PHYS_Falling
     DrawScale=1.000000
     AmbientGlow=40
     UV2Texture=FadeColor'PatchTex.Common.PickupOverlay'
     ScaleGlow=0.000000
     CollisionRadius=28.000000
     CollisionHeight=20.000000
     RotationRate=(Yaw=0)
}
